<?php
$criteria=new CDbCriteria;
if(Yii::app()->user->id==1){
    $criteria->condition='enabled=1 AND cid=23';
} else{
    $criteria->condition='`uid`=:uid AND enabled=1 AND cid=23';
}

$criteria->params=array(':uid'=>Yii::app()->user->id);
$dataProvider=new CActiveDataProvider('Article',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>20,
    ),
));

$session=new CHttpSession();
$session->open();
$session['i']=1;
$session['cid']=12;

?>

<div class="wp detailContent22" style="min-height: 1335px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
        <tbody><tr>
            <th bgcolor="#efefef" align="center" class="th1">标题</th>
            <th width="16%" bgcolor="#efefef" align="center" class="th1">审核状态</th>
            <th width="20%" bgcolor="#efefef" align="center">操作指令</th>
        </tr>
        <?php
        if(!empty($dataProvider->data))
            $this->widget('zii.widgets.CListView', array(
                'dataProvider'=>$dataProvider,
                'itemView'=>'_xscj_sh',
                'ajaxUpdate'=>false,
                'template'=>"{items}\n{pager}" ,
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
            ));
        ?>
        </tbody></table>
    <div class="clear"></div>
</div>